import BasicLayout from "@/layouts/basic-layout";

import admin from "./admin";

/**
 * 在主框架内显示
 */
export default [
  ...admin,
  {
    path: "/",
    redirect: { name: `home` },
    component: BasicLayout,
    children: [
      {
        path: "",
        name: `home`,
        meta: {
          title: "前端首页",
          auth: false
        },
        component: () => import("@/pages/home")
      },
      {
        path: "problems/:id",
        name: `problems`,
        meta: {
          title: "题目详情页",
          auth: false
        },
        component: () => import("@/pages/problem/problemDetails")
      }
    ]
  }
];
